﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Lin.EFData.Table
{
    //[Serializable]
    [Table("LinUser")]
    public class LinUser
    {
        public LinUser()
        {
            uRwid = 0;
            uCode = string.Empty;
            uName = string.Empty;
            uPets = string.Empty;
            uPass = string.Empty;
            uLine = string.Empty;
            uIPad = string.Empty;
            uStop = false;
        }

        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Column("uRwid")]
        public Int32 uRwid { get; set; }

        [MaxLength(20)]
        [Column("uCode")]
        public String uCode { get; set; }

        [MaxLength(20)]
        [Column("uName")]
        public String uName { get; set; }

        [MaxLength(20)]
        [Column("uPets")]
        public String uPets { get; set; }

        [MaxLength(32)]
        [Column("uPass")]
        public String uPass { get; set; }

        [MaxLength(32)]
        [Column("uRole")]
        public String uRole { get; set; }

        [MaxLength(20)]
        [Column("uLine")]
        public String uLine { get; set; }

        [MaxLength(50)]
        [Column("uIPad")]
        public String uIPad { get; set; }

        [Column("uStop")]
        public Boolean uStop { get; set; }

    }
}
